package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "GPSInfo".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class GPSInfoHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GPSInfoHelper.id(),"GPSInfo",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("usernbr", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("longitude", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("latitude", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("speed", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("direction", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("height", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("status", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("firsttime", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("lasttime", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("mileage", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("mileage_last", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("cleartime", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("keep1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep2", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep3", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GPSInfo s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GPSInfo extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/GPSInfo:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GPSInfo read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GPSInfo result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GPSInfo();
		result.usernbr=in.read_string();
		result.longitude=in.read_string();
		result.latitude=in.read_string();
		result.speed=in.read_long();
		result.direction=in.read_long();
		result.height=in.read_long();
		result.status=in.read_long();
		result.firsttime=in.read_long();
		result.lasttime=in.read_long();
		result.mileage=in.read_string();
		result.mileage_last=in.read_string();
		result.cleartime=in.read_long();
		result.keep1=in.read_string();
		result.keep2=in.read_string();
		result.keep3=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.GPSInfo s)
	{
		out.write_string(s.usernbr);
		out.write_string(s.longitude);
		out.write_string(s.latitude);
		out.write_long(s.speed);
		out.write_long(s.direction);
		out.write_long(s.height);
		out.write_long(s.status);
		out.write_long(s.firsttime);
		out.write_long(s.lasttime);
		out.write_string(s.mileage);
		out.write_string(s.mileage_last);
		out.write_long(s.cleartime);
		out.write_string(s.keep1);
		out.write_string(s.keep2);
		out.write_string(s.keep3);
	}
}
